﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SJ.Platform.EFCore.Model.ApproveManager
{
    [Table("approve_record")]
    [Description("审批记录表")]
    public class ApproveRecord
    {
        /// <summary>
        /// 主键
        /// </summary>
        public string? Id { get; set; }

        /// <summary>
        /// 主流程ID
        /// </summary>
        public string? PId { get; set; }

        /// <summary>
        /// 审批流程ID
        /// </summary>
        public string? FlowId { get; set; }

        /// <summary>
        /// 审批流程节点ID
        /// </summary>
        public string? NodeId { get; set; }

        /// <summary>
        /// 审批人ID
        /// </summary>
        public string? ApproveUserId { get; set; }

        /// <summary>
        /// 审批人姓名
        /// </summary>
        public string? ApproveUserName { get; set; }

        /// <summary>
        /// 审批结果（1=同意，2=不同意）
        /// </summary>
        public int? ApproveResult { get; set; }

        /// <summary>
        /// 是否审核（1=审核，0=未审核）
        /// </summary>
        public int? IsCheck {  get; set; }

        /// <summary>
        /// 审批意见
        /// </summary>
        public string? ApproveOpinion { get; set; }

        /// <summary>
        /// 审批时间
        /// </summary>
        public DateTime? ApproveTime { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime? CreateTime { get; set; }
    }
}
